<include file="Admin@Public/header" /> 

<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
  <ol class="breadcrumb">
    <li>开发模式</li>
    <li>后台菜单</li>
    <li class="active">添加</li>
  </ol>
   
<form  class="form-horizontal" role="form" action="__URL__/save" >
  <input type="hidden" name="inputId" value="0" > 
  <input type="hidden" name="inputType" value="1" > 
  <div class="form-group">
    <label class="col-sm-2 control-label">上级菜单</label>
    <div class="col-sm-4">
      <input type="hidden" name="inputParentId" <if condition="$parentMenuObj">value="{$parentMenuObj.id}"<else/>value="0"</if>> 
      <p class="form-control-static"><if condition="$parentMenuObj">{$parentMenuObj.name}<else/>作为第一级</if></p>
    </div>
  </div>
  <div class="form-group">
    <label for="inputName" class="col-sm-2 control-label">菜单名</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputName" name="inputName" placeholder="请输入菜单名" datatype="*2-6" errormsg="<i class='icon-warning-sign'></i> 标题在2~6位之间"  nullmsg="<i class='icon-warning-sign'></i> 请填写信息！" >
    </div>
    <div class="Validform_checktip">
       <div class="Validform-info">菜单名至少2个字符,最多6个字符<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
    </div>
  </div>
  <div class="form-group">
    <label for="inputModel" class="col-sm-2 control-label">Model</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputModel" name="inputModel" placeholder="请输入Model" value="{$parentMenuObj.model}" datatype="s" errormsg="<i class='icon-warning-sign'></i> 必须是英文字符串"  nullmsg="<i class='icon-warning-sign'></i> 请填写信息！"> 
    </div>
    <div class="Validform_checktip">
       <div class="Validform-info">Model，所属模块<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
    </div>
  </div>
  <div class="form-group">
    <label for="inputController" class="col-sm-2 control-label">Controller</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputController" name="inputController" placeholder="请输入Controller" value="{$parentMenuObj.controller}" datatype="s" errormsg="<i class='icon-warning-sign'></i> 必须是英文字符串"  nullmsg="<i class='icon-warning-sign'></i> 请填写信息！">
    </div>
    <div class="Validform_checktip">
       <div class="Validform-info">Controller，所属控制器<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
    </div>
  </div>
  <div class="form-group">
    <label for="inputAction" class="col-sm-2 control-label">Action</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputAction" name="inputAction" placeholder="请输入Action" value="{$parentMenuObj.action}" datatype="s" errormsg="<i class='icon-warning-sign'></i> 必须是英文字符串"  nullmsg="<i class='icon-warning-sign'></i> 请填写信息！">
    </div>
    <div class="Validform_checktip">
       <div class="Validform-info">Action,所属方法<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
    </div>
  </div>
  <div class="form-group">
    <label for="inputIcon" class="col-sm-2 control-label">Icon</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" id="inputIcon" name="inputIcon" placeholder="请输入Icon">
    </div>
    <div class="Validform_checktip">
       <div class="Validform-info">Icon,显示图标<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
    </div>
  </div>
  <div class="form-group">
    <label for="inputStatus" class="col-sm-2 control-label">是否显示</label>
    <div class="col-sm-4">
      <input type="checkbox" name="inputStatus" value="1" id="inputStatus">显示
    </div>
  </div>
  
  <div class="form-group">
    <label for="inputStatus" class="col-sm-2 control-label"> </label>
    <div class="col-sm-4">
      <input type="button" class="btn btn-primary" value="添加" id="btn_sub"/>
       <a href="__URL__/index" class="btn btn-default" >返回</a>
  </div>
</div>
</form> 
            
           
              
            
            
</div>

<include file="Admin@Public/script_form" /> 
<include file="Admin@Public/footer" /> 
   
